#import <UIKit/UIKit.h>
#import <CoreData/CoreData.h>

#import "TrackLyrics.h"
#import "TrackInfo.h"
#import "LyricsProvider.h"

@interface RootViewController : UIViewController <MPMediaPickerControllerDelegate>

@property (nonatomic, retain) IBOutlet UITextView  *lyricsTextView;  
@property (nonatomic, retain) IBOutlet UILabel	   *trackTitle;

@property (nonatomic, retain) TrackLyrics			 *currentTrackLyrics;
@property (nonatomic, retain) TrackInfo				 *currentTrackInfo;
@property (nonatomic, retain) NSManagedObjectContext *managedObjectContext;
@property (nonatomic, retain) id<LyricsProvider>     lyricsProvider;

- (IBAction) selectTrack:(id)sender;
- (IBAction) fetchLyrics:(id)sender;
- (IBAction) saveLyrics:(id)sender;
- (void) onCurrentTrackChanged:(TrackInfo*)track;

@end
